from dataclasses import dataclass


@dataclass
class SubmitRecord:
    assignmentId: int
    studentId: int
    uploaded: bool
    studentName: str = ""

    def __init__(self, assignment_id, student_id, uploaded, student_name):
        self.assignmentId = assignment_id
        self.studentId = student_id
        self.uploaded = bool(uploaded)
        self.studentName = student_name